﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Protegidos/Pessoas/GENTE_PesDt.master" AutoEventWireup="true" CodeFile="pDadosPessoais.aspx.cs" Inherits="Protegidos_Pessoas_DadosPessoa_pDadosPessoais" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphSubConteudo" Runat="Server">

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">

    function ShowInsertNacionalidade() {
        window.radopen("_popup/ppAdNacionalidade.aspx", "RadWindow1");
        return false;
    }
    function ShowInsertFoto() {
        window.radopen("_popup/ppUpFoto.aspx", "RadWindow2");
        return false;
    }
    function ShowInsertAtestado() {
        window.radopen("_popup/ppArqPadrao.aspx", "RadWindow3");
        return false;
    }
    function refreshGrid(arg) {
        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("arg");
    }
</script>
</telerik:RadCodeBlock>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="gridNacionalidade" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="lnkFoto" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="lnkAtestado" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>      
    <telerik:AjaxSetting AjaxControlID="gridNacionalidade">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="gridNacionalidade" LoadingPanelID="RadAjaxLoadingPanel1" />
        </UpdatedControls>
    </telerik:AjaxSetting>                                                             
</AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" >
</telerik:RadAjaxLoadingPanel> 

<telerik:RadWindowManager ID="RadWindowManager2" runat="server">
    <Windows>
        <telerik:RadWindow  ID="RadWindow1" runat="server" Height="150px" Width="500px" ReloadOnShow="true" Modal="true"
            ShowContentDuringLoad="false" VisibleStatusbar="false" Behaviors="Close, Move, Resize, Maximize" />
    </Windows>
    <Windows>
        <telerik:RadWindow  ID="RadWindow2" runat="server" Height="500px" Width="500px" ReloadOnShow="true" Modal="true"
            ShowContentDuringLoad="false" VisibleStatusbar="false" Behaviors="Close, Move, Resize, Maximize" />
    </Windows>
    <Windows>
        <telerik:RadWindow  ID="RadWindow3" runat="server" Height="500px" Width="500px" ReloadOnShow="true" Modal="true"
            ShowContentDuringLoad="false" VisibleStatusbar="false" Behaviors="Close, Move, Resize, Maximize" />
    </Windows>
</telerik:RadWindowManager>

<table width="99%" align="center">
    <tr>
        <td>
            <div class="Titulo01">Dados Pessoais</div>
            <div class="Titulo02">Pessoas</div>
        </td>    
    </tr>
    <tr>
        <td>
            
            <table width="100%"  align="right">
            
                <tr id="trMensagem" runat="server" visible="false">
                    <td valign="middle" style="background-color:#FFFFAA; height:25px; width:100%">
                        &nbsp;&nbsp;
                        <asp:Label ID="lblResultado" runat="server" Text="" Font-Names="Verdana" Font-Size="9"></asp:Label>
                    </td>
                </tr>
            
                <%--INICIO - DADOS PRINCIPAIS--%>   
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Dados Principais</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                    
                        <table class="textoCZ_12B">
                            <tr>
                                <td style="width: 150px">Nome:</td>
                                <td>
                                    <asp:TextBox ID="txtNome" runat="server" Width="500px"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txtNome"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                                </td>
                            </tr>
                            <tr>
                                <td>Apelido:</td>
                                <td>
                                    <asp:TextBox ID="txtApelido" runat="server" Width="500px"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td>Sexo:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbSexo" runat="server" Skin="Telerik" Width="240px">
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator5" ControlToValidate="rcbSexo"
                                        InitialValue=" -- Selecione -- " ErrorMessage="*" ValidationGroup="1" />
                                </td>
                            </tr>
                            <tr>
                                <td>Estado Civil:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbEstadoCivil" runat="server" Skin="Telerik" Width="240px" >
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator17" ControlToValidate="rcbEstadoCivil"
                                        InitialValue=" -- Selecione -- " ErrorMessage="*" ValidationGroup="1" />
                                </td>
                            </tr>
                            <tr>
                                <td>Data de Nascimento:</td>
                                <td>
                                    <telerik:RadDatePicker ID="txtDataNascimento" runat="server" ShowPopupOnFocus="true" >
                                        <DateInput EmptyMessage="dd/MM/aaaa"></DateInput>
                                    </telerik:RadDatePicker>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="txtDataNascimento"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                                </td>
                            </tr>
                        </table>
                    
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <asp:Button ID="btnSalvarDP" runat="server" Text="Salvar" Width="110px" 
                            ValidationGroup="1" CausesValidation="true" onclick="btnSalvarDP_Click"/>&nbsp;&nbsp;
                    </td>
                </tr>
                <%--FIM - DADOS PRINCIPAIS--%>   
                
                <%--INICIO - NACIONALIDADE--%>
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Nacionalidade</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td> 
                    
                        <telerik:RadGrid ID="gridNacionalidade" runat="server" AllowPaging="True" Width="100%" 
                            ondeletecommand="gridNacionalidade_DeleteCommand" Skin="Telerik">
                            <PagerStyle Mode="NumericPages" />
                            <MasterTableView AutoGenerateColumns="False" DataKeyNames="IdTipoNacionalidade" ClientDataKeyNames="IdTipoNacionalidade" Width="100%" CommandItemDisplay="Top" PageSize="10">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Descricao" HeaderText="Nacionalidade" UniqueName="Descricao"></telerik:GridBoundColumn>
                                    <telerik:GridButtonColumn UniqueName="DeleteColumn" Text="Remover" CommandName="Delete" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="60px"></telerik:GridButtonColumn>
                                </Columns>
                                <CommandItemTemplate>
                                    <!-- -->
                                    <table border="0" style="width: 100%;" class="rgCommandTable">
                                        <tbody>
                                            <tr>
                                                <td align="left">
                                                    <input class="rgAdd" type="button" title=" Adicionar Nacionalidade" onclick="return ShowInsertNacionalidade();" />
                                                    <a href="#" onclick="return ShowInsertNacionalidade();">Adicionar Nacionalidade</a>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <!-- -->
                                </CommandItemTemplate>
                            </MasterTableView>
                        </telerik:RadGrid>
                    
                    </td>
                </tr>
                <%--FIM - NACIONALIDADE--%>
                    
                <%--INICIO - NATURALIDADE--%>
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Naturalidade</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td> 
                    
                        <table class="textoCZ_12B">
                            <tr>
                                <td style="width: 150px">Estado Naturalidade:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbEstadoNat" runat="server" Skin="Telerik" Width="105px" 
                                        AutoPostBack="true" OnSelectedIndexChanged="rcbEstadoNat_SelectedIndexChanged">
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator8" ControlToValidate="rcbEstadoNat"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="2" />
                                </td>
                            </tr>
                            <tr>
                                <td>Cidade Naturalidade:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbCidadeNat" runat="server" Skin="Telerik" Width="240px" >
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator9" ControlToValidate="rcbCidadeNat"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="2" />
                                </td>
                            </tr>
                        </table>
                    
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <asp:Button ID="btnSalvarNat" runat="server" Text="Salvar" Width="110px" 
                            ValidationGroup="2" CausesValidation="true" onclick="btnSalvarNat_Click"/>&nbsp;&nbsp;
                    </td>
                </tr>
                <%--FIM - NATURALIDADE--%>
            
                <%--INICIO - FILIAÇÃO--%>                    
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Filiação</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td> 
                    
                        <table class="textoCZ_12B">
                            <tr>
                                <td style="width: 150px">Pai:</td>
                                <td>
                                    <asp:TextBox ID="txtNomePai" runat="server" Width="500px"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="txtNomePai"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="3" />
                                </td>
                            </tr>
                            <tr>
                                <td>Mãe:</td>
                                <td>
                                    <asp:TextBox ID="txtNomeMae" runat="server" Width="500px"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="txtNomeMae"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="3" />
                                </td>
                            </tr>
                        </table>
                    
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <asp:Button ID="btnSalvarFiliacao" runat="server" Text="Salvar" Width="110px" 
                            ValidationGroup="3" CausesValidation="true" onclick="btnSalvarFiliacao_Click"/>&nbsp;&nbsp;
                    </td>
                </tr>
                <%--FIM - FILIAÇÃO--%>
            
                <%--INICIO - CONJUGE--%>                    
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Cônjuge</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                                
                        <table class="textoCZ_12B">
                            <tr>
                                <td style="width: 150px">Nome do cônjuge:</td>
                                <td>
                                    <asp:TextBox ID="txtNomeConjuge" runat="server" Width="500px"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator21" ControlToValidate="txtNomeConjuge"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="4" />
                                </td>
                            </tr>
                            <tr>
                                <td>Data de Nascimento:</td>
                                <td>
                                    <telerik:RadDatePicker ID="txtDataNacimentoConjuge" runat="server" ShowPopupOnFocus="true" >
                                        <DateInput EmptyMessage="dd/MM/aaaa"></DateInput>
                                    </telerik:RadDatePicker>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator22" ControlToValidate="txtDataNacimentoConjuge"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="4" />
                                </td>
                            </tr>
                        </table>
                        
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <asp:Button ID="btnSalvarConjuge" runat="server" Text="Salvar" Width="110px" 
                            ValidationGroup="4" CausesValidation="true" onclick="btnSalvarConjuge_Click"/>&nbsp;&nbsp;
                    </td>
                </tr>
                <%--FIM - CONJUGE--%>
            
                <%--INICIO - CARACTERISTICAS FISICAS--%>                
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Características Físicas</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                                
                        <table class="textoCZ_12B">
                            <tr>
                                <td style="width: 150px">Raça/Cor:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbRaca" runat="server" Skin="Telerik" Width="240px" EmptyMessage="Selecione" AllowCustomText="false">
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator10" ControlToValidate="rcbRaca"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                            <tr>
                                <td>Altura:</td>
                                <td>
                                    <asp:TextBox ID="txtAltura" runat="server" Width="100px"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator11" ControlToValidate="txtAltura"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                            <tr>
                                <td>Peso:</td>
                                <td>
                                    <asp:TextBox ID="txtPeso" runat="server" Width="100px"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator12" ControlToValidate="txtPeso"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                            <tr>
                                <td>Cabelos:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbCabelo" runat="server" Skin="Telerik" Width="240px" >
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator13" ControlToValidate="rcbCabelo"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                            <tr>
                                <td>Olhos:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbOlhos" runat="server" Skin="Telerik" Width="240px" >
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator14" ControlToValidate="rcbOlhos"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                            <tr>
                                <td>Sinais:</td>
                                <td>
                                    <asp:TextBox ID="txtSinal" runat="server" Height="35px" Width="490px" TextMode="MultiLine"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator15" ControlToValidate="txtSinal"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                            <tr>
                                <td>Tipo Sanguíneo:</td>
                                <td>
                                    <telerik:RadComboBox ID="rcbTipoSanguineo" runat="server" Skin="Telerik" Width="240px" >
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    </telerik:RadComboBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator16" ControlToValidate="rcbTipoSanguineo"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="5" />
                                </td>
                            </tr>
                        </table>
                        
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    <asp:Button ID="btnSalvarCarcFisicas" runat="server" Text="Salvar" Width="110px" 
                            ValidationGroup="5" CausesValidation="true" 
                            onclick="btnSalvarCarcFisicas_Click"/>&nbsp;&nbsp;
                    </td>
                </tr>
                <%--FIM - CARACTERISTICAS FISICAS--%>
            
                <%--INICIO - OBSERVAÇÕES--%>                        
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Observações</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                                
                        <table class="textoCZ_12B">
                            <tr>
                                <td>
                                    Quem sou eu e o que quero da vida?
                                    <br />
                                    <asp:TextBox ID="txtObs" runat="server" Height="50px" Width="640px" TextMode="MultiLine"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator19" ControlToValidate="txtObs"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="6" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Comentários adicionais:
                                    <br />
                                    <asp:TextBox ID="txtObsAdicional" runat="server" Height="50px" Width="640px" TextMode="MultiLine"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator20" ControlToValidate="txtObsAdicional"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="6" />
                                </td>
                            </tr>
                        </table>
                        
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Button ID="btnSalvarObs" runat="server" Text="Salvar" Width="110px" ValidationGroup="6" CausesValidation="true" onclick="btnSalvarObs_Click"/>&nbsp;&nbsp;
                    </td>
                </tr>
                <%--FIM - oBSERVAÇÕES--%>
            
                <%--INICIO - IMAGENS--%>
                <tr>
                    <td>
                        <div class="subTitulo_pagina">Imagens</div>
                        <div class="espaco"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                       
                       <table class="textoCZ_12B">
                            <tr>
                                <td style="width: 270px">Foto:</td>
                                <td>
                                    <asp:LinkButton ID="lnkFoto" runat="server" OnClientClick="ShowInsertFoto(); return false;"></asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td>Atestado de antecedentes criminais:</td>
                                <td>
                                    <asp:LinkButton ID="lnkAtestado" runat="server" OnClientClick="ShowInsertAtestado(); return false;"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        
                    </td>
                </tr>
                <%--FIM - IMAGENS--%>
              </table>
              
        </td>
    </tr>
</table>
                
                
</asp:Content>

